

cc   = gcc
flags= -Wall -g
name = lab04
src  = main.c func.c envelop.c
obj  = main.o func.o envelop.o
hdr  = func.h envelop.h


all: $(name)

$(name): $(obj) $(hdr)
	@echo "Compilando programa principal\n"
	$(cc) $(obj) -o $(name) $(flags)

.c.o:
	$(cc) -c $^

clean:
	rm -rf *.o *~
	
	
open:
	kate main.c func.c func.h envelop.c envelop.h makefile &